import request from '@/utils/request'
import { config } from '@/utils/requestconfig'

export function GetMyAllUnits() {
  return request({
    baseURL: config.webapi,
    url: 'Unit/GetUserUnits',
    method: 'get'
  })
}
export function getCurrUnitInfo() {
  return request({
    baseURL: config.webapi,
    url: 'Unit/GetCurrUnitInfo',
    method: 'get'
  })
}
export function addUnitInfo(params) {
  return request({
    baseURL: config.webapi,
    url: 'Unit/AddUnit',
    method: 'post',
    data: params
  })
}
export function editUnitInfo(params) {
  return request({
    baseURL: config.webapi,
    url: 'Unit/EidtUnit',
    method: 'post',
    data: params
  })
}

